package com.yfjin_rtmp;

/**
 * @author jinyf
 */
public class RTMPPackage {

    private byte[] buffer;
    private long tms;

    private int type;
    public static final int RTMP_PACKET_TYPE_AUDIO_DATA = 2;
    public static final int RTMP_PACKET_TYPE_AUDIO_HEAD = 1;
    public static final int RTMP_PACKET_TYPE_VIDEO = 0;

    public RTMPPackage(byte[] outData, long tms,int type) {
        this.buffer=outData;
        this.tms=tms;
        this.type=type;
    }

    public int getType() {
        return type;
    }

    public byte[] getBuffer() {
        return buffer;
    }

    public long getTms() {
        return tms;
    }
}
